package com.whmall.service.crm.enumeration;

/**
 * 公司用户券状态
 */
public enum CompanyUserCouponStatusEnum {

    INACTIVATED(1, "未激活"),
    UNUSED(2, "未使用"),
    USED(3, "已使用"),
    ABOLISHED(4, "已作废");

    public static CompanyUserCouponStatusEnum fromValue(int value) {
        for (CompanyUserCouponStatusEnum anEnum : values()) {
            if (anEnum.getValue() == value) {
                return anEnum;
            }
        }
        return null;
    }

    CompanyUserCouponStatusEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }
    private final int value;

    private final String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
